package com.lanyun.auth.enums;


import com.lanyun.exception.ErrorCode;

/**
 * @Author Jqcc
 * @Version 1.0
 * @Data 2025/3/11
 * AUTH 错误码枚举
 * AUTH_USER_XXX 用户管理
 * AUTH_ROLE_XXX 角色管理
 */
public interface ErrorCodeConstants {

    /**
     * 用户异常
     */
    ErrorCode AUTH_USER_NOT_EXIST = new ErrorCode(1_001_001_001, "用户不存在");
    ErrorCode AUTH_USER_PASSWORD_ERROR = new ErrorCode(1_001_001_002, "用户密码错误");
    ErrorCode AUTH_USER_EXIST = new ErrorCode(1_001_001_003, "用户名存在");

    /**
     * 角色异常
     */
    ErrorCode AUTH_ROLE_NOT_EXIST = new ErrorCode(1_001_002_001, "角色不存在");
    ErrorCode AUTH_ROLE_EXIST = new ErrorCode(1_001_002_002, "角色已存在");

}
